package com.runa.monitor.platinterface.config;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class CustomThreadUncaughtExceptionHandler implements Thread.UncaughtExceptionHandler {
    private static final Logger LOGGER = LoggerFactory.getLogger(CustomThreadUncaughtExceptionHandler.class);
    @Override
    public void uncaughtException(Thread t, Throwable e) {
        LOGGER.error("捕获线程异常，线程信息:[{}]", t.getName(), e);
    }
}